          <!-- START OF MAINCOL -->
          <div class="MainCol CategoriesPage">

              <h1 class="left">编辑分类</h1>
              <div class="right">
              </div>
              <br class="clear" />
              
              <span class="NormalFont SmallFont">
                  <?= CHtml::image(Yii::app()->baseUrl.'/images/home_icon.gif', '主页'); ?> > 文章管理 > 编辑分类
               </span><br /><br />
              
<!--              <div class="SaveBox Smallbox">-->
<!--              -->
<!--                <span class="Error"> Please save your changes.</span>-->
<!--              </div>-->
<!--              -->
<!--              <div class="SuccessfulBox Smallbox">-->
<!--                <span class="Successful"> You have successfully saved the book details.</span>-->
<!--              </div>-->

              <div class="DisplayBox_top Smallbox">
              
              	  <b class="left SmallFont">共 <span class="Blue"><?= count($categories); ?></span> 条记录 </b>
                  
                  <div class="clear"><!-- DON'T DELETE --></div>      
              </div>
              
              <ul class="Lists Smallbox">
<!--                  <li class="Yellow_bg">-->
<!--                      <b class="BigFont">添加新分类</b><br /><br />-->
<!--                      -->
<!--                      <div class="Smallbox">-->
<!--                      	<label>分类名 </label><input type="text" value="Enter category name" class="TxtInput" />-->
<!--                      </div>-->
<!--                      -->
<!--                      <div class="Dotted Midbox"> DON'T DELETE </div><br class="clear" />-->
<!---->
<!--                      <label>&nbsp;</label>-->
<!--                      <a title="add category" class="Grey_btn" href=""><span>添加新分类</span></a>-->
<!--              -->
<!--                  <span class="Cancel SmallFont">或 <a class="BlueLink" href="">取消</a></span>-->
<!--                  <br class="clear" />-->
                      
<!--                  </li>-->
                  <?php foreach($categories as $k => $category) : ?>
                  <li class="ThinGrey_bg">
                         <b class="left icon_big"><?= ++$k; ?>.</b>
                       	 <b class="left"><?= $category->terms->name; ?></b>
                       </span>
                       
                       <span class="right">
                      	<?= CHtml::link(CHtml::image(Yii::app()->baseUrl.'/images/edit_btn.gif', 'edit', array('class' => 'icon_biger')), array('/admin/posts/categoryedit/', 'id' => $category->termTaxonomyId)); ?>
                      </span>
                      <br class="clear" />
                      
                  </li>
                  <?php endforeach; ?>
                  
              </ul>
              
              
              <div class="DisplayBox_btm">
              
              	  <b class="left SmallFont">共 <span class="Blue"><?= count($categories); ?></span> 条记录 </b>
                  
                  <br class="clear" />
              </div>
              
        </div>
          <!-- END OF MAINCOL -->